package com.supermap.application.common;

/**
 * 新增返回对象类
 * @param <T>
 */
public class ReturnObject<T> {

    //返回状态
    private boolean status;

    //返回提示
    private String message;

    //返回对象
    private T data;


    public ReturnObject() {}


    public ReturnObject(boolean status, String message, T data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
